package com.softstao.guoyu.global;


import com.softstao.guoyu.model.me.User;

/**
 * Created by xuhon on 2016/5/16.
 */

//用户管理
public class UserManager {
    private static UserManager _Usermanager=null;
    private User user;
    private UserManager(){}

    public synchronized static UserManager getInstance(){
        if(_Usermanager==null){
            _Usermanager = new UserManager();
        }
        return _Usermanager;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
        SharePreferenceManager.getInstance().serUser(user);
    }
}
